<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pForm.jsp" %>
<title>角色新增页面</title>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/com.fs.base.pojo.Role/newAdd"   >
		 <input type="hidden" name="className" value="com.fs.base.pojo.Role" />
		 <input type="hidden" name="roleDataRight" value="" />
		 
			 <div style="margin-bottom:20px">
			  	<input class="easyui-textbox easyui-validatebox" name="roleName" style="width:240px;" data-options="labelWidth:80,label:'角色名称:',required:true,validType:['length[1,15]','remote[\'/console/role/remote\',\'roleName\']']" />
			 </div>
			<!-- 
			<div style="margin-bottom:20px">
			  	 <select class="easyui-combotree" id="roleDataRight"  style="width:240px;" data-options="labelWidth:80,label:'部门数据权限:',multiple:true,valueField:'text'" 
					url="/console/dictionary/combotree?valueField=dicName&textField=dicName&modleName=dictionary&pCode=A5&pCode_searchType=eq" >
			 	</select>
			 </div>
			 -->
			 <div style="margin-bottom:20px">
			  	 <select class="easyui-combobox" name="moduleDataRight"  style="width:240px;" data-options="labelWidth:80,label:'数据权限:',panelHeight:120" >
			  	 	<option value="self">仅自己数据可见</option>   
				    <option value="department">所属项目部数据可见</option>
				    <option value="all">所有数据可见</option>     
			 	</select>
			 </div>
			
			 <div style="margin-bottom:20px">
			  	<input class="easyui-textbox" name="roleDesc" multiline="true" style="width:240px;height:80px;"  data-options="labelWidth:80,label:'角色描述:',required:false,validType:'length[0,500]'"  />
			 </div>
			 
		</form>
	</div>
<script>
$(function(){
	$("#roleDataRight").combotree({
		onChange:function(newValue, oldValue){
			var txt = $(this).combotree("getText")
			$("input[name=roleDataRight]").val(txt);
		}
	});
});
</script>
</body>
</html>